/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import { Work } from '../../../../../src/base/internal/pool/model/work';
import { Priority } from '../../../../../src/base/internal/pool/enum/priority';

describe('test work', () => {
  const work = new Work(Priority.FIRST, undefined, '');
  test('test setPriority', () => {
    work.setPriority(Priority.FIRST);
    expect(work.getPriority() === Priority.FIRST).toBeTruthy();
  });
});
